#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os, glob

def file_access(fpath):
		print fpath, ':',

		if os.access(fpath, os.F_OK): print 'Exists',
		else: return

		if os.access(fpath, os.R_OK): print 'R',
		if os.access(fpath, os.W_OK): print 'W',
		if os.access(fpath, os.X_OK): print 'X',
		print

		if os.access(fpath, os.R_OK | os.W_OK | os.X_OK ): print 'RWX',
		print

flist = glob.glob('*')
for fname in flist:
	file_access(fname)
